You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.AmpltToDb Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.AmpltToDb Method

Convert amplitude to decibels.

Syntax
C#
Visual Basic
public static double AmpltToDb([In] TDenseMtxVec Data, double Base, double span, double aMax, bool Normalized);

Converts Data (amplitude) to decibels. Base is the base of the logarithm and should be 10, if decibels are desired. The logarithm is then scaled by 20 according to the formula LogN(Base,Value)*20. Span defines the dynamic range in dB on the left axis. The values below -span will be clipped. If Normalized is True, the maximum will be set to zero and minimum to -Span. The function returns -Span.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!